<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<?php include_http_metas() ?>
		<?php include_metas() ?>
		<?php include_title() ?>
		<link rel="shortcut icon" href="/favicon.ico" />
		<?php include_stylesheets() ?>
		<?php include_javascripts() ?>
	</head>
	<body>

	<div id="header">Outil de comm du BdE
	<a href="<?php echo url_for('home/index'); ?>">Home</a>
	<?php if (!$sf_user->isAuthenticated()) {?>
	- <a href="<?php echo url_for('@login'); ?>">Login</a>
	<?php } else { ?>
	- <a href="<?php echo url_for('@logout'); ?>">Logout (<?php echo $sf_user->getAttribute('id_arise') ?>)</a>
	<?php } ?>
	</div>
	
	<?php 
	if($sf_user->hasFlash('info'))
	{
		echo "<p>".$sf_user->getFlash('info')."</p>";
	}
	?>
	
	<?php 
	if($sf_user->hasFlash('error'))
	{
		echo "<p>".$sf_user->getFlash('error')."</p>";
	}
	?>
	
	<div id="container">

	<?php echo $sf_content ?>

	</div>

	<div id="footer">Outil de communication</div>
	
	</body>
</html>
